package com.edu.scau.service;



import com.edu.scau.dao.implement.UserDaoImpl;
import com.edu.scau.entity.User;

public class OrderInfo {
	
	
	
	public String[] getInfo(int id) {
		UserDaoImpl userDao = new UserDaoImpl();
		User user=userDao.get(id);
		String[] info=new String[3];
		info[0]=user.getName();
		info[1]=user.getAddress();
		info[2]=user.getPhoneNumber();
		return info;
		
	}
}
